package com.ldatum.crm.serviceImpl;

import java.util.List;

import com.ldatum.crm.dao.LevelDao;
import com.ldatum.crm.daoImpl.LevelDaoImpl;
import com.ldatum.crm.domain.Level;
import com.ldatum.crm.service.LevelService;

public class LevelServiceImpl implements LevelService {

	private LevelDao levelDao = new LevelDaoImpl();	
	
	@Override
	public List<Level> list() throws Exception {
		return levelDao.list();
	}

	@Override
	public Level findByLevel(String levelname)  throws Exception{
		return levelDao.findByLevel(levelname);
	}

	@Override
	public boolean findByName(String levelName) throws Exception {
		return levelDao.findByName(levelName);
	}

	@Override
	public int update(String levelName, String yxq, String zkxs,
			String hyqy) throws Exception {
		return levelDao.update(levelName,yxq,zkxs,hyqy);
	}

	@Override
	public int save(String levelName, String yxq, String zkxs, String hyqy)
			throws Exception {
		return levelDao.save(levelName,yxq,zkxs,hyqy);
	}

}
